# .\bootstrap.bat
# .\b2.exe --prefix="E:/boost_1_84_0" --build-type=complete --toolset=msvc-14.3 threading=multi --build-type=complete address-model=32
# .\b2.exe install --prefix="E:/boost_1_84_0" --build-type=complete --toolset=msvc-14.3 threading=multi --build-type=complete address-model=32
cmake_minimum_required( VERSION 3.5.1)

if(NOT CMAKE_PREFIX_PATH)
    message(FATAL_ERROR "CMAKE_PREFIX_PATH is not set. Please set it using -DCMAKE_PREFIX_PATH=<path>")
else()
    message(STATUS "CMAKE_PREFIX_PATH is set to: ${CMAKE_PREFIX_PATH}")
endif()

find_package(Boost COMPONENTS thread REQUIRED)

INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )

set( Boost_USE_STATIC_LIBS        OFF )
set( Boost_USE_MULTITHREADED      ON  )
set( Boost_USE_STATIC_RUNTIME     OFF )
set( BOOST_ALL_DYN_LINK           ON  ) # force dynamic linking for all libraries